package com.travel.recommend.web;

import com.travel.recommend.service.InitialLikeTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class InitialLikeTagWebController {

    @Autowired
    InitialLikeTagService initialLikeTagService;

    @RequestMapping("/saveInitialLikeTag/{initialLikeTag}")
    public String saveInitialLikeTag(@PathVariable("initialLikeTag")String initialLikeTag){
        System.out.println("initialLikeTag "+initialLikeTag);
        initialLikeTagService.saveInitialLikeTag(initialLikeTag);

        return "redirect:http://sight.travel.com/";
    }
}
